
const { successResponse} = require('../utils/errorResponse');
const { getUploadPolicy } = require('../utils/ossUtil');

/**
 * 获取OSS上传签名
 */
const ossController = {
  ossUploadSignature: async (req, res, next) => {
    try {
      const signatureData = await getUploadPolicy();
      successResponse(res, signatureData)
    } catch (error) {
      next(error)
    }
  } 
}


module.exports = ossController;